<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>媒体查询</title>
    <style>
      @media screen and (max-width: 539px) {
        body {
          background-color: blue;
        }
      }
      @media screen and (max-width: 969px) and (min-width: 540px) {
        body {
          background-color: green;
        }
      }
      @media screen and (min-width: 970px) {
        body {
          background-color: red;
        }
      }
    </style>
  </head>
  <body></body>
</html>
